Configuration cInstallerFromPackage
{
    param (

	[Parameter(Mandatory)]
	[ValidateNotNullOrEmpty()]
	[PSObject]$PackageDefinition
    )

    #Log Message
    Log "cInstallerFromPackageStart_$($PackageDefinition.uniqueKey)" {
        Message = "Start cInstallerFromPackage for $($PackageDefinition.UniqueKey)"
    } 


    #Install package
    Package "cInstallerFromPackageInstall_$($PackageDefinition.uniqueKey)" {
        Ensure = $PackageDefinition.Ensure
        Name = $PackageDefinition.Name
        Path = $PackageDefinition.LocalPath
        ProductId = $PackageDefinition.ProductId
        Arguments = $PackageDefinition.Arguments
    }

    #Log Message
    Log "cInstallerFromPackageEnd_$($PackageDefinition.uniqueKey)" {
        Message = "End cInstallerFromPackage for $($PackageDefinition.UniqueKey)"
    } 


}

